<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/corelib/kernel/qvariant.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QVariant</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QVariant</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qvariant.html">QVariant class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qvariant-qt3.html#QVariant-36">QVariant</a></b> ( bool <i>b</i>, int <i>dummy</i> )</li>
<li><div class="fn"/>QBitArray &amp; <b><a href="qvariant-qt3.html#asBitArray">asBitArray</a></b> ()</li>
<li><div class="fn"/>bool &amp; <b><a href="qvariant-qt3.html#asBool">asBool</a></b> ()</li>
<li><div class="fn"/>QByteArray &amp; <b><a href="qvariant-qt3.html#asByteArray">asByteArray</a></b> ()</li>
<li><div class="fn"/>QByteArray &amp; <b><a href="qvariant-qt3.html#asCString">asCString</a></b> ()</li>
<li><div class="fn"/>QDate &amp; <b><a href="qvariant-qt3.html#asDate">asDate</a></b> ()</li>
<li><div class="fn"/>QDateTime &amp; <b><a href="qvariant-qt3.html#asDateTime">asDateTime</a></b> ()</li>
<li><div class="fn"/>double &amp; <b><a href="qvariant-qt3.html#asDouble">asDouble</a></b> ()</li>
<li><div class="fn"/>int &amp; <b><a href="qvariant-qt3.html#asInt">asInt</a></b> ()</li>
<li><div class="fn"/>QList&lt;QVariant&gt; &amp; <b><a href="qvariant-qt3.html#asList">asList</a></b> ()</li>
<li><div class="fn"/>qlonglong &amp; <b><a href="qvariant-qt3.html#asLongLong">asLongLong</a></b> ()</li>
<li><div class="fn"/>QMap&lt;QString, QVariant&gt; &amp; <b><a href="qvariant-qt3.html#asMap">asMap</a></b> ()</li>
<li><div class="fn"/>QPoint &amp; <b><a href="qvariant-qt3.html#asPoint">asPoint</a></b> ()</li>
<li><div class="fn"/>QRect &amp; <b><a href="qvariant-qt3.html#asRect">asRect</a></b> ()</li>
<li><div class="fn"/>QSize &amp; <b><a href="qvariant-qt3.html#asSize">asSize</a></b> ()</li>
<li><div class="fn"/>QString &amp; <b><a href="qvariant-qt3.html#asString">asString</a></b> ()</li>
<li><div class="fn"/>QStringList &amp; <b><a href="qvariant-qt3.html#asStringList">asStringList</a></b> ()</li>
<li><div class="fn"/>QTime &amp; <b><a href="qvariant-qt3.html#asTime">asTime</a></b> ()</li>
<li><div class="fn"/>uint &amp; <b><a href="qvariant-qt3.html#asUInt">asUInt</a></b> ()</li>
<li><div class="fn"/>qulonglong &amp; <b><a href="qvariant-qt3.html#asULongLong">asULongLong</a></b> ()</li>
<li><div class="fn"/>bool <b><a href="qvariant-qt3.html#canCast">canCast</a></b> ( Type <i>t</i> ) const</li>
<li><div class="fn"/>bool <b><a href="qvariant-qt3.html#cast">cast</a></b> ( Type <i>t</i> )</li>
<li><div class="fn"/>const QByteArray <b><a href="qvariant-qt3.html#toCString">toCString</a></b> () const</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QVariant-36"></a>QVariant::QVariant ( bool <i>b</i>, int <i>dummy</i> )</h3>
<p>Use the <a href="qvariant.html">QVariant</a>(bool) constructor instead.</p>
<h3 class="fn"><a name="asBitArray"></a><a href="qbitarray.html">QBitArray</a> &amp; QVariant::asBitArray ()</h3>
<p>Use <a href="qvariant.html#toBitArray">toBitArray</a>() instead.</p>
<h3 class="fn"><a name="asBool"></a>bool &amp; QVariant::asBool ()</h3>
<p>Use <a href="qvariant.html#toBool">toBool</a>() instead.</p>
<h3 class="fn"><a name="asByteArray"></a><a href="qbytearray.html">QByteArray</a> &amp; QVariant::asByteArray ()</h3>
<p>Use <a href="qvariant.html#toByteArray">toByteArray</a>() instead.</p>
<h3 class="fn"><a name="asCString"></a><a href="qbytearray.html">QByteArray</a> &amp; QVariant::asCString ()</h3>
<p>Use <a href="qvariant.html#toByteArray">toByteArray</a>() instead.</p>
<h3 class="fn"><a name="asDate"></a><a href="qdate.html">QDate</a> &amp; QVariant::asDate ()</h3>
<p>Use <a href="qvariant.html#toDate">toDate</a>() instead.</p>
<h3 class="fn"><a name="asDateTime"></a><a href="qdatetime.html">QDateTime</a> &amp; QVariant::asDateTime ()</h3>
<p>Use <a href="qvariant.html#toDateTime">toDateTime</a>() instead.</p>
<h3 class="fn"><a name="asDouble"></a>double &amp; QVariant::asDouble ()</h3>
<p>Use <a href="qvariant.html#toDouble">toDouble</a>() instead.</p>
<h3 class="fn"><a name="asInt"></a>int &amp; QVariant::asInt ()</h3>
<p>Use <a href="qvariant.html#toInt">toInt</a>() instead.</p>
<h3 class="fn"><a name="asList"></a><a href="qlist.html">QList</a>&lt;QVariant&gt; &amp; QVariant::asList ()</h3>
<p>Use <a href="qvariant.html#toList">toList</a>() instead.</p>
<h3 class="fn"><a name="asLongLong"></a><a href="qtglobal.html#qlonglong-typedef">qlonglong</a> &amp; QVariant::asLongLong ()</h3>
<p>Use <a href="qvariant.html#toLongLong">toLongLong</a>() instead.</p>
<h3 class="fn"><a name="asMap"></a><a href="qmap.html">QMap</a>&lt;<a href="qstring.html">QString</a>, QVariant&gt; &amp; QVariant::asMap ()</h3>
<p>Use <a href="qvariant.html#toMap">toMap</a>() instead.</p>
<h3 class="fn"><a name="asPoint"></a><a href="qpoint.html">QPoint</a> &amp; QVariant::asPoint ()</h3>
<p>Use <a href="qvariant.html#toPoint">toPoint</a>() instead.</p>
<h3 class="fn"><a name="asRect"></a><a href="qrect.html">QRect</a> &amp; QVariant::asRect ()</h3>
<p>Use <a href="qvariant.html#toRect">toRect</a>() instead.</p>
<h3 class="fn"><a name="asSize"></a><a href="qsize.html">QSize</a> &amp; QVariant::asSize ()</h3>
<p>Use <a href="qvariant.html#toSize">toSize</a>() instead.</p>
<h3 class="fn"><a name="asString"></a><a href="qstring.html">QString</a> &amp; QVariant::asString ()</h3>
<p>Use <a href="qvariant.html#toString">toString</a>() instead.</p>
<h3 class="fn"><a name="asStringList"></a><a href="qstringlist.html">QStringList</a> &amp; QVariant::asStringList ()</h3>
<p>Use <a href="qvariant.html#toStringList">toStringList</a>() instead.</p>
<h3 class="fn"><a name="asTime"></a><a href="qtime.html">QTime</a> &amp; QVariant::asTime ()</h3>
<p>Use <a href="qvariant.html#toTime">toTime</a>() instead.</p>
<h3 class="fn"><a name="asUInt"></a><a href="qtglobal.html#uint-typedef">uint</a> &amp; QVariant::asUInt ()</h3>
<p>Use <a href="qvariant.html#toUInt">toUInt</a>() instead.</p>
<h3 class="fn"><a name="asULongLong"></a><a href="qtglobal.html#qulonglong-typedef">qulonglong</a> &amp; QVariant::asULongLong ()</h3>
<p>Use <a href="qvariant.html#toULongLong">toULongLong</a>() instead.</p>
<h3 class="fn"><a name="canCast"></a>bool QVariant::canCast ( <a href="qvariant.html#Type-enum">Type</a> <i>t</i> ) const</h3>
<p>Use <a href="qvariant.html#canConvert">canConvert</a>() instead.</p>
<h3 class="fn"><a name="cast"></a>bool QVariant::cast ( <a href="qvariant.html#Type-enum">Type</a> <i>t</i> )</h3>
<p>Use <a href="qvariant.html#convert">convert</a>() instead.</p>
<h3 class="fn"><a name="toCString"></a>const <a href="qbytearray.html">QByteArray</a> QVariant::toCString () const</h3>
<p>Use <a href="qvariant.html#toByteArray">toByteArray</a>() instead.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
